/**
 * Created by x298017064010 on 17/4/1.
 *
 */
import router from '../router/index'

const globalEvent = weex.requireModule('globalEvent');

globalEvent.addEventListener("demo", function(e) {
    router.push('demo');
    console.log('push demo successed');
});

globalEvent.addEventListener("todo", function(e) {
    router.push('todo');
    console.log('push todo successed');
});

globalEvent.addEventListener("animation", function(e) {
    router.push('animation');
    console.log('push animation successed');
});

globalEvent.addEventListener("dom", function(e) {
    router.push('dom');
    console.log('push dom successed');
});

globalEvent.addEventListener("picker", function(e) {
    router.push('picker');
    console.log('push picker successed');
});

globalEvent.addEventListener("clipboard", function(e) {
    router.push('clipboard');
    console.log('push clipboard successed');
});

globalEvent.addEventListener("stream", function(e) {
    router.push('stream');
    console.log('push stream successed');
});

globalEvent.addEventListener("webview", function(e) {
    router.push('webview');
    console.log('push webview successed');
});

globalEvent.addEventListener("welcome", function(e) {
    router.push('welcome');
    console.log('push welcome successed');
});

// 项目中要使用到的router
globalEvent.addEventListener("recommend", function(e) {
    router.push('recommend');
    console.log('push recommend successed');
});
globalEvent.addEventListener("allplay", function(e) {
    router.push('allplay');
    console.log('push allplay successed');
});
globalEvent.addEventListener("mine", function(e) {
    router.push('mine');
    console.log('push mine successed');
});